﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="hidebar.aspx.cs" Inherits="hidebar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" style="height:100%">
<head id="Head1" runat="server">
    <title>无标题页</title>
 

</head>

<body  style="background-repeat:repeat-y; height:100%"><div class="img_v">
<table width="8"  border="0" cellspacing="0" cellpadding="0" style="height:100%">
  <tr>
    <td valign="middle" class="bg_repeat_y">
	<!--隐藏-->
	<table width="8" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td id="btn_hideleft" onclick="hideleft();" class="left_hide"></td>
  </tr>
</table>
	</td>
  </tr>
</table>
</div>
</body>
</html>

<script language="javascript" type="text/javascript">

function PageWidth() //预算系统页面div伸缩自适应页面大小
{
 var w = window.frameElement.offsetWidth ;
//alert(self.parent.main.div_content);//DOM有效,非DOM直接取其ID
//alert(self.parent.main.l_tree);//有效,非DOM结构
if(self.parent.main.document.getElementById("div_content")) 
{
alert("test");

     if (self.parent.main.l_tree.style.width=="200px")
            { 
           //self.parent.main.getElementById("div_content").style.width = w-220;
           self.parent.main.SetPageWidth2();
            }
            else
            {
              self.parent.main.SetPageWidth2();
            }
 //self.parent.main.getElementById("div_content") ;
}
}



function hideleft(){
if(window.parent.menu_main2.cols=="0,8,*"){
//frameshow1.src="images/b_1.jpg";
btn_hideleft.className="left_hide";
btn_hideleft.title="隐藏菜单栏"
window.parent.menu_main2.cols="160,8,*";
PageWidth();
//window.parent.menu_main2.main.SetPageWidth();
}
else{
//frameshow1.src="images/b_2.jpg";
btn_hideleft.className="left_show";
btn_hideleft.title="显示菜单栏"
window.parent.menu_main2.cols="0,8,*";
PageWidth();
}
}

function Hidd()
{
btn_hideleft.className="left_show";
btn_hideleft.title="显示菜单栏"
window.parent.menu_main2.cols="0,8,*";
}
function Show()
{
btn_hideleft.className="left_hide";
btn_hideleft.title="隐藏菜单栏"
window.parent.menu_main2.cols="160,8,*";
}
</script>
